<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>汽车列表</title>
</head>
<body>
	<table>
		<tr>
			<th>品牌</th>
			<th>颜色</th>
			<th>价格</th>
		</tr>
		<%
			for(var i in data){
				%>
				<tr>
					<td><%=data[i].c_band%></td>
					<td><%=data[i].c_color%></td>
					<td><%=data[i].c_price%></td>
					<td><img width="100" src="/images/<%=data[i].c_img%>" alt=""></td>
					<td>
					<a href="/car/car_delete_handler?id=<%=data[i].c_id%>">删除</a>|
					<a href="/car/car_update_view?id=<%=data[i].c_id%>">更新</a></td>
				</tr>
				<%
			}
		%>

	</table>

	<button onclick="add_car()">添加汽车</button>

	<script>
		function add_car(argument) {
			window.location.href = "car/add_car_view";
		}
	</script>
</body>
</html>